package com.spring.shops.dao;

import com.spring.shops.model.entity.TzUserAddr;
import com.spring.shops.model.entity.TzUserAddrOrder;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TzUserAddrOrderMapper {
    int deleteByPrimaryKey(Long addrOrderId);

    int insert(TzUserAddrOrder record);

    int insertSelective(TzUserAddrOrder record);

    TzUserAddrOrder selectByPrimaryKey(Long addrOrderId);

    int updateByPrimaryKeySelective(TzUserAddrOrder record);

    int updateByPrimaryKey(TzUserAddrOrder record);

    @Select("select * from tz_user_addr where user_id=#{userId}")
    TzUserAddr selectbyUserId(String userId);

    List<TzUserAddrOrder> selectByUserId(List<String> userId);
}